package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.ClientTraceList;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientTraceListMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ClientTraceList record);

    ClientTraceList selectByPrimaryKey(Long id);

    List<ClientTraceList> selectAll();

    int updateByPrimaryKey(ClientTraceList record);

    int query4Count(QueryObject qo);

    List<ClientTraceList> query4List(QueryObject qo);

    ClientTraceList getByName(String name);

    void changeResult(@Param("id") Long id, @Param("result") Long result);

    Long selectByUserName(String name);
}